﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ModulesInfrastructure;
using ShellInfrastructure;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Prism.Regions;
using ModuleEditPlace.Views;
using ModuleEditPlace.ViewModels;


namespace ModuleEditPlace
{
    public class EditPlaceModule: SharedModule
    {
        protected override void RegisterViewsInRegions()
        {
            RegionManager.RegisterViewWithRegion(RegionNames.RightRegionName, () => UnityContainer.Resolve<IEditPlaceView>());
        }

        protected override void RegisterTypesDependencies()
        {
            UnityContainer.RegisterType<IEditPlaceView, EditPlaceView>(new ContainerControlledLifetimeManager());
            UnityContainer.RegisterType<IEditPlaceViewModel, EditPlaceViewModel>(new ContainerControlledLifetimeManager());
        }
    }//class       
}
